import network from "./request";

export const decrptMobile = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/user/decrptMobile",
        data,
        ...params,
    });
};

export const userLogin = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/user/login",
        data,
        ...params,
    });
};
export const getUserInfo = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/user/getUserInfo",
        data,
        ...params,
    });
};

export const createRentOrder = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/createRentOrder",
        data,
        ...params,
    });
};

export const orderInfo = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/order/info",
        data,
        ...params,
    });
};

export const cancelOrder = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/order/cancel",
        data,
        ...params,
    });
};

export const getPayType = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/pay/getPayType",
        data,
        ...params,
    });
};

export const collect = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/order/collect",
        data,
        ...params,
    });
};


export const qrCollectCancel = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/order/qrCollectCancel",
        data,
        ...params,
    });
};




export const userDepositPay = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/userDepositPay",
        data,
        ...params,
    });
};

export const orderRentSign = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/orderRentSign",
        data,
        ...params,
    });
};

export const getRentOrders = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/getRentOrders",
        data,
        ...params,
    });
};

export const getDestInfoByOrder = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/getDestInfoByOrder",
        data,
        ...params,
    });
};


export const createOrderContract = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/createOrderContract",
        data,
        ...params,
    });
};

export const queryOrderContract = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/queryOrderContract",
        data,
        ...params,
    });
};

export const getRentOrderInfo = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/getRentOrderInfo",
        data,
        ...params,
    });
};

export const getContractDownUrl = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/getContractDownUrl",
        data,
        ...params,
    });
};

export const getDepositBreakHis = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/getDepositBreakHis",
        data,
        ...params,
    });
};

export const applyBeakRefund = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/applyBeakRefund",
        data,
        ...params,
    });
};

export const jumpRentCycleSign = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/jumpRentCycleSign",
        data,
        ...params,
    });
};

export const getUserContractInfo = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/getUserContractInfo",
        data,
        ...params,
    });
};

export const changeUserContractInfo = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/changeUserContractInfo",
        data,
        ...params,
    });
};

export const applyFinishRent = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/applyFinishRent",
        data,
        ...params,
    });
};
